package bold.deposit.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 监听 2
 */
@Component
public class Listener2 implements ApplicationListener<Event2> {

    @Override
    public void onApplicationEvent(Event2 event) {
        System.out.println("监听 2");
        event.print();
    }
}
